home *** CD-ROM | disk | FTP | other *** search
/ Focus for Success / Focus for Success.iso / mac / Shared.dir / 01505_Field_1505.txt < prev    next >
Text File  |  1995-02-28  |  4KB  |  67 lines

  1.   -- Explanation of globals:
  2.   
  3.   -- gButtonHot: A true/false flag for buttons that turns off interactivity while the
  4.   --             button is busy carrying out it's stuff.  This prevents thrashing.
  5.   
  6.   -- gMinSlide/gMaxSlide: Values for the limits of the answer slider.  Initialized in this script.
  7.   
  8.   -- gStartDepth: This holds screen depth of the user's computer before he/she launched Focus.
  9.   
  10.   -- numberColor: This is a list that holds the CLUT values for the different positions of 
  11.   --               the 1-bit readout numbers on the answer slider (for Chapter 1).
  12.   
  13.   -- gOldRoll: Equals 0 if no item is rolled over. Equals 1-9 if a local window item is
  14.   --         rolled over.  Equals 10-15 if a button is rolled over.
  15.   
  16.   -- prefIO: FileIO factory object called when Focus preference file IO is needed. Focus
  17.   --         prefs = "taispercent" field in the cast (for first-use initialization purposes).
  18.   --         This object is only used when fileIO is needed - most of the time it is disposed.
  19.   
  20.   -- gDemographics: Equivalent to demographic field of card title. A simple list containing
  21.   --                 user's name and password. (What about situation of 2 users?)
  22.   --                 Make sure that this is writing properly to prefText...     FIX
  23.   
  24.   -- gRolloverOn: Sets up a flag to turn the rollover stuff on (1) or off (0). Checked
  25.   --               from the idle handler.
  26.   
  27.   -- gButtonStatus: A linear list that holds the current status of the buttons. Positions:
  28.   --       1=logo, 2=bookmark, 3=sound, 4=video/file, 5=mainMenu, 6=exit, 7=toggle,
  29.   --       8=unimplemented.  States:  0=disabled, 1=normal, 2+=special states.
  30. --        For position 4: 0=disabled video, 1=normal video, 0.0=disabled file, 1.0=enabled file
  31.   --       Exceptions: Sound is given as a float, the digits to the right of the decimal
  32.   --        point expressing last sound setting.  Toggle is also a float, 1.0=normal toggle,
  33.   --        1.1=toggle left disabled, 1.2=toggle right disabled.
  34.   --        This information is referenced by the button scripts.
  35.   
  36.   -- gSpriteChannels: A linear list that holds the sprite channel numbers for various screen
  37.   --       elements, especially buttons. Positions: 1=logo, 2=bookmark, 3=soundButton,
  38.   --       4=videoButton/fileButton, 5=mainMenuButton, 6=quitButton, 7=toggle, 8=soundSliderBar
  39.   --       This global might not be used  (since button channels are so consistent and
  40.   --        descriptive prop lists can't be used since they are so slow).
  41.   --       However, it is currently used. Using gSpriteChannels is the proper way to
  42.   --        reference sprite channels.
  43.   
  44.   -- gVolume: The current overall (sounds & video) volume setting.
  45.   
  46.   -- gRollLocH: A linear list containing the locH of rollover text so that it can be restored
  47.   --            on rollover. When not rolled over, the buttons are thrown off screen.
  48.   --        Positions: 1=logo, 2=bookmark, 3=sound, 4=video, 5=mainMenu, 6=exit, 7=toggle(if one).
  49.   
  50.   -- gMachine: Holds the machineType.  If 256, then it's an IBM PC.
  51.   
  52.   -- gcarpet: XObject instance used to hide the finder, works with RearWindow.
  53.   
  54.   
  55.   -- Explanation of other globals not declared in this script:
  56.   
  57.   -- prefText: Text holder for preferences while program is active. prefIO writes
  58.   --              this to preferences only when the user quits.
  59.   
  60.   -- rawScores: Array factory instance equivalent to numbered fields on raw scores card.
  61.   
  62.   -- testAnswers: A list that holds the user's input from chapter 1.
  63.   
  64.   -- prefFolderPath: A string that holds the path to the preferences directory.
  65.   
  66.   -- prefFileName: A string that holds the name of the preferences. On Mac = "Focus Preferences",
  67.   --       on Windows = "FOCUS.INI"